package com.wlient.basic.Stream;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: 史炜立
 * @description: TODO
 * @date: 2022/1/6 13:46
 */
public class insertData {
    @Test
    public static List<user> insertUser() {
        List<user> userList = new ArrayList<>();

        user u1 = new user(1,"A", 22, 176);
        user u2 = new user(2,"C", 24, 177);
        user u3 = new user(3,"B", 22, 176);
        user u4 = new user(4,"D", 20, 165);
        user u5 = new user(5,"E", 32, 158);
        user u6 = new user(6,"F", 12, 181);
        userList.add(u1);
        userList.add(u2);
        userList.add(u3);
        userList.add(u4);
        userList.add(u5);
        userList.add(u6);
        return userList;
    }

    @Test
    public static List<Address> insertAddress() {
        List<Address> addressList = new ArrayList<>();

        Address u1 = new Address(1,"梧桐落");
        Address u2 = new Address(2,"凤凰峡");
        Address u3 = new Address(3,"剑谷");
        Address u4 = new Address(3,"周口店");
        Address u5 = new Address(5,"白云城");
        Address u6 = new Address(5,"泰山");
        addressList.add(u1);
        addressList.add(u2);
        addressList.add(u3);
        addressList.add(u4);
        addressList.add(u5);
        addressList.add(u6);
        return addressList;
    }
}
